home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / sgml / unix / sgmlh / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-03  |  4.0 KB  |  64 lines

  1. /******************************************************************************/
  2. /* ERROR.H: Symbols for SGML error codes (start with '_').
  3.             Numbers 46 - 56 are generated by ERROR.C.
  4.             Later numbers are coded directly.
  5. */
  6. /* SGMLERR.C: General errors and syntax errors.
  7. */
  8. #define _CONTEXT   1   /* W  GI not allowed at this point in structure. */
  9. #define _MDNAME    2   /* E  Invalid markup declaration name. */
  10. /*efine _LEN       3   /* E  Syntax error: length exceeded. */
  11. #define _SYS       4   /* W  Illegal system character. */
  12. #define _ETAG      5   /* E  End-tag does not match any open start-tag. */
  13. #define _STAGMAX   6   /* E  Maximum number of open elements exceeded. */
  14. /*      _ALLNULL   7   /* W  Start- and end-tag omitted with null content. */
  15. #define _EOF       8   /* E/W Illegal entity end in markup or delimited text. */
  16. /* fine _INV       9   /* E  Markup error: invalid character. */
  17. #define _CHARS    10   /* W  Data found in content that doesn't allow it. */
  18. /* fine _NOETDE   11   /* E  End-tag GI not defined by element declaration. */
  19. #define _BADNM    12   /* E  Name is not syntactically valid. */
  20. #define _BADATT   13   /* E  Attribute was not defined by element declaration. */
  21. #define _VALINV   14   /* W  Att value/declaration conflict: invalid char. */
  22. #define _VALLEN   15   /* W  Att value/declaration conflict: token too long. */
  23. #define _VALCNT   16   /* W  Att value/declaration conflict: too many tokens. */
  24. #define _VALTYPE  17   /* W  Att value/declaration conflict: wrong token type.*/
  25. #define _VALGRP   18   /* W  Att value/declaration conflict: token not in grp.*/
  26. #define _VALREQ   19   /* W  Att value/declaration conflict: req unspecified. */
  27. /*      _EMIN     20   /* W  End-tag implied by end-tag; not minimizable. */
  28. /*      _SMIN     21   /* W  Omitted start-tag was not minimizable. */
  29. #define _POSSATT  22   /* E  Possible att found but not defined; used as data.*/
  30. /* Late additions numbered out of order to avoid recompilation. */
  31. /*efine _ENTSYNC  37   /* E  Entity and group nesting levels out of sync. */
  32. #define _BADVAL   25   /* W  Att value omitted (null); default used. */
  33. /*      _ECONTXT  30   /* W  Element ended prematurely (some content omitted).*/
  34. /*      _EMINST   39   /* W  End-tag implied by start-tag; not minimizable. */
  35. /*      _MEXTAG   40   /* W  *** In Use ***                               */
  36. #define _MEXERR   41   /* W  Attempt to exclude contextually required element.*/
  37. #define _DOCTYPE  42   /* W  No document type defined; *DOCTYPE assumed. */
  38. /*      _NOETDS   43   /* E  Start-tag GI not defined by element declaration. */
  39. #define _RESTART  44   /* E  Invalid chars ignored; trying to restart parse. */
  40.  
  41. /* MDERROR.C: Errors in markup declarations.
  42. */
  43. /*efine _DUP      23   /* E  Duplicate specification. */
  44. /*efine _KEY      24   /* E  Incorrect keyword for parameter. */
  45. /*efine _MSE      26   /* E  MSE occurred with no corresponding MS. */
  46. /*efine _MSS      27   /* E  MSS exceeded maximum nesting level. */
  47. /*efine _NUM      28   /* E  Incorrect number of parameters. */
  48. #define _TYPE     29   /* E  Incorrect parameter type. */
  49. /* Late additions numbered out of order to avoid recompilation. */
  50. /*efine _VAL      38   /* W  Incorrect parameter value. */
  51.  
  52. /* RESERROR.C: Errors in resource routines.
  53. */
  54. /* Unused                 I  End of primary source entity. */
  55. /* fine _FILBUF   31   /* E  Could not read next buffer. */
  56. /* fine _ERFILE   32   /* E  Could not open file. */
  57. /* fine _MALLOC   33   /* T  Could not obtain required main storage. */
  58. /* fine _ERMAX    34   /* E  Maximum number of open entities exceeded. */
  59. /* fine _ERNAME   35   /* E  Referenced entity undeclared. */
  60. /* fine _ERLOOP   36   /* E  Entity referenced within itself: ref ignored. */
  61. /* Late additions numbered out of order to avoid recompilation. */
  62. /*      _ERDEF    45   /* E  Referenced entity undeclared; SYSTEM assumed. */
  63. /******************************************************************************/
  64.